package com.ys.service.Impl;

import com.ys.mapper.BittableMapper;
import com.ys.pojo.Bittable;
import com.ys.service.BittableService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service("bittableService")
@Transactional
public class BittableServiceImpl implements BittableService {

    @Resource
    private BittableMapper bittableMapper;

    @Override
    public List<Bittable> searchAll(Integer warechouseId) {
        return bittableMapper.findAll(warechouseId);
    }
}
